|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
262 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 | /**
|
|---|
| 3 | * @param {string} value
|
|---|
| 4 | * @return {string}
|
|---|
| 5 | */
|
|---|
| 6 | module.exports = function (value) {
|
|---|
| 7 | const lowerCasedValue = value.toLowerCase();
|
|---|
| 8 |
|
|---|
| 9 | return lowerCasedValue === 'normal'
|
|---|
| 10 | ? '400'
|
|---|
| 11 | : lowerCasedValue === 'bold'
|
|---|
| 12 | ? '700'
|
|---|
| 13 | : value;
|
|---|
| 14 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.