Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Sascha Manns
Added: Jul 4, 2018 8:34 PM
Modified: Jul 4, 2018 8:35 PM
Views: 5
Tags: remove spaces
The first function removes the trailing spaces. The second function puts a private into a global variable (Engomo Framework)
  1. function replaceBlanks(value)  {
  2.     return value.replace(/^\s+|\s+$/g, "");
  3. }
  4.  
  5. function fillChangedStateParameters(){
  6.     state.put("Reifenhersteller", replaceBlanks("$Reifenhersteller"));
  7. }