string-extra
string-extra copied to clipboard
String helper functions for Elm.
I think characters from other Unicode blocks should also be added for completeness, but I lack required linguistic knowledge to provide translations. Hopefully we can consider it a small progress...
The RegEx expression `[_-\\s]+` is invalid in many RegEx parsers... and scripts created by Elm will fail when this JS method is run within those environments. This PR replaces the...
While testing an application built with Elm, I came across an error triggered by using the dasherize() method. It seems that the RegEx `[_-\\s]+` used in the method is not...
I propose providing a function for `words` that answers `[]` for blank text, because there are no words in a blank piece of text and because the empty string is,...
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2. Commits 754f0c2 1.3.2 90ee1fa ensure keys are valid when mixing in values See full diff in compare view Maintainer changes This version was pushed...
Bumps [fstream](https://github.com/npm/fstream) from 1.0.11 to 1.0.12. Commits 4235459 1.0.12 6a77d2f Clobber a Link if it's in the way of a File See full diff in compare view [](https://help.github.com/articles/configuring-automated-security-fixes)...
Function allows for simple replacing blank strings for default placeholders, useful if expression replacement
I was using `List.map` with `String.join` until I realized that that goes through the whole list twice. I tried `List.foldl` but then I realized that couldn't get me the same...
I have found this function quite useful for me, maybe it could be useful for others? Maybe there is a better name for it? ```elm fillPlaceholders [ ( "page", "2"...
There are two issues with the current implementation: `[a-z]` only matches precisely a - z, and `\w` only matches english word characters. See PR here https://github.com/elm-community/string-extra/pull/36