Skip to content
This repository has been archived by the owner on Dec 17, 2022. It is now read-only.

Lacona Phrase for handling strings. A <freetext /> wrapper designed to be extended

License

Notifications You must be signed in to change notification settings

brandonhorst/elliptical-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lacona-phrase-string

Lacona phrase for parsing strings. Ultimately, this is just a wrapper for the built-in <freetext /> phrase. However, this is a higher-level variant which is designed for accepting specific strings from a user.

In general, if an arbitrary string is an argument to a command, it should be a lacona-phrase-string. If it is simply a component of a higher-level argument (a component of a phone number, for example), it should be a freetext.

The advantage is that lacona-phrase-string can be extended.

Reference

String

Result

String - the string entered

props

  • argument: String - the text for the label
  • trimmed: Boolean - do not accept strings that begin or end with whitespace. Defaults to true.

For these props, please see docs for string

  • consumeAll: Boolean
  • splitOn: String | RegExp
  • limit: Integer

About

Lacona Phrase for handling strings. A <freetext /> wrapper designed to be extended

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published