Logo
Explore Help
Sign In
gaspersic/freeCodeCamp
1
0
Fork 0
You've already forked freeCodeCamp
Code Issues Pull Requests Projects Releases Wiki Activity
Files
142ac17112361d18d44fab9d1fae1c9077fafbae
freeCodeCamp/curriculum/utils.js

8 lines
162 B
JavaScript
Raw Normal View History

feat(package): Initial Curriculum separation (#17174) * feat(package): Initial Curriculum separation * feat(package): Add org scope to package * chore(ooops): Remove development file * feat(npm): Add .npmignore * fix(paths): Fix curriculum paths * feat(build): Add a build step * chore(seed): Move package file back to seed * fix(ignore): Fix .npmIgnore file * chore(docs): Update README * chore(seed): Rename coding interview blocks * fix(seed): Challenge files now fit into learn * chore(seed): Update seed files for use in learn * chore(escapes): Unescape script tags of jQuery
2018-05-21 14:56:49 +01:00
export function dasherize(name) {
return ('' + name)
.toLowerCase()
.replace(/\s/g, '-')
.replace(/[^a-z0-9\-\.]/gi, '')
.replace(/\:/g, '');
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.3 Page: 45ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API