@legtech/initiativeparser
v1.0.2
Published
Provides a way to parse and convert initiatives to digit only or it's display format
Downloads
5
Keywords
Readme
getLegislationNumber: Parses initiative inputs to their digit format. For example, if you supply "IL24-999", "24-999", or "IL24-999", it will return "24999". getLegislationDisplayNumber: Converts the 5 digit initiative inputs to their proper display format. For example, if you supply "24999", it will return "IL24-999".
Steps to use: Make sure that you have the script referenced in your HTML file (Ex: _Layout.cshtml). For example: "" To use it in your javascript code, you would use it like so: "var initiativeNumber = WslInitiativeParser.getLegislationNumber(input);" "var initiativeDisplayNumber = WslInitiativeParser.getLegislationDisplayNumber(input);"