This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const _d = (s) => { | |
| // Convert Persian Number to English Numbers | |
| return s && s.length > 0 | |
| ? s.replace(/[\u0660-\u0669\u06F0-\u06F9]/g, function (a) { | |
| return a.charCodeAt(0) & 0xf; | |
| }) | |
| : s; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function trimmer(word){ | |
| const len = word.length | |
| const number = len - 2 | |
| return (word.charAt(0) + number + word.charAt(len - 1)).toLowerCase() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <configuration> | |
| <system.webServer> | |
| <rewrite> | |
| <rules> |