取消正则校验

master
guoshuang 7 months ago
parent be5feb77c7
commit 9bd25616e4

@ -142,7 +142,7 @@ export default class LoginPage extends BasePage {
// console.log('Version////', this.Version); // console.log('Version////', this.Version);
} }
///****************** ///******************
version = '0.0.154'; // version = '0.0.155'; //
//version = '0.0.14'; // //version = '0.0.14'; //
//*************** false true **************** //*************** false true ****************
//isTest = true; //isTest = true;

@ -694,14 +694,14 @@ export default class PurchaseWHSRM extends BasePage {
}); });
return; return;
} }
const regex = /^[a-zA-Z0-9.]+$/; // // const regex = /^[a-zA-Z0-9.]+$/; //
const inputValue = this.tagsvalue; // // const inputValue = this.tagsvalue; //
if (!regex.test(inputValue)) { // if (!regex.test(inputValue)) {
// // //
this.tagsvalue = inputValue.replace(/[^a-zA-Z0-9.]/g, ''); // this.tagsvalue = inputValue.replace(/[^a-zA-Z0-9.]/g, '');
} else { // } else {
this.tagsvalue = inputValue; // // this.tagsvalue = inputValue; //
} // }
console.log(this.tagslist, 'sadasdww'); console.log(this.tagslist, 'sadasdww');
let a: any = {}; let a: any = {};
a.value = this.tagsvalue; a.value = this.tagsvalue;
@ -2160,15 +2160,15 @@ export default class PurchaseWHSRM extends BasePage {
this.formdata.quality = event; this.formdata.quality = event;
} }
changeInputtags(event) { changeInputtags(event) {
// this.tagsvalue = event; this.tagsvalue = event;
const regex = /^[a-zA-Z0-9.]+$/; // // const regex = /^[a-zA-Z0-9.]+$/; //
const inputValue = event; // // const inputValue = event; //
if (!regex.test(inputValue)) { // if (!regex.test(inputValue)) {
// // //
this.tagsvalue = inputValue.replace(/[^a-zA-Z0-9.]/g, ''); // this.tagsvalue = inputValue.replace(/[^a-zA-Z0-9.]/g, '');
} else { // } else {
this.tagsvalue = inputValue; // // this.tagsvalue = inputValue; //
} // }
} }
// //
validateInputtags(event) { validateInputtags(event) {

Loading…
Cancel
Save