Last round of prettier: npx prettier --write src/
This commit is contained in:
@@ -17,7 +17,9 @@ import type { key_val } from './ae_utils';
|
||||
*/
|
||||
// Updated 2022-02-11
|
||||
|
||||
export const process_data_string = function process_data_string(data_string: string) {
|
||||
export const process_data_string = function process_data_string(
|
||||
data_string: string
|
||||
) {
|
||||
console.log('*** process_data_string() ***');
|
||||
// console.log(data_string);
|
||||
if (!data_string || data_string.length < 1) {
|
||||
@@ -70,14 +72,18 @@ export const process_data_string = function process_data_string(data_string: str
|
||||
obj['type'] = 'url';
|
||||
obj['url'] = data_string;
|
||||
} else {
|
||||
console.log('The unknown data string type was found. Returning the string part.');
|
||||
console.log(
|
||||
'The unknown data string type was found. Returning the string part.'
|
||||
);
|
||||
const unknown_str = data_string.slice(colon_index + 1);
|
||||
console.log(unknown_str);
|
||||
|
||||
obj['str'] = unknown_str;
|
||||
}
|
||||
} else {
|
||||
console.log('The data string type was not found. Returning the entire string.');
|
||||
console.log(
|
||||
'The data string type was not found. Returning the entire string.'
|
||||
);
|
||||
console.log(data_string);
|
||||
|
||||
obj['qr_type'] = 'UNKNOWN';
|
||||
|
||||
Reference in New Issue
Block a user