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
| [Environment]::SetEnvironmentVariable("<VARIABLE_NAME>", "<VARIABLE_VALUE>", "User") |
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 getWords (text) { | |
| return text.match(/([^\u0000-\u0040\u005B-\u0060\u007B-\u00BF\u02B0-\u036F\u00D7\u00F7\u2000-\u2BFF])+/g) | |
| } | |
| // Example: | |
| // For text: 'Есть button, h1, textarea. Мне нужно: найти самое длинное слово в-textarea! то -- что пишу в ней'.match(...) | |
| // Result will be: ["Есть", "button", "h", "textarea", "Мне", "нужно", "найти", "самое", "длинное", "слово", "в", "textarea", "то", "что", "пишу", "в", "ней"] | |
| // AUTOR: https://regexr.com/3b0ik |
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
| Vue.filter('truncate', (text, stop = 15, clamp) => { | |
| if (!text) { | |
| return text | |
| } | |
| return text.slice(0, stop) + (stop < text.length ? clamp || '...' : '') | |
| }) |
NewerOlder