How to check a string is valid product handle when create product. We need to maintaince the products’ handle outside shopify, but we need to convert the handle to shopify accepted handle format.
I tested it the shopify can contains “-“, “_“, number, letter. The charactor “%“ is not allowed.
But I don’t test all charactors, I can’t find a official document what charactors is allowed in handle. The document in Help Center is saying “A valid URL handle can contain letters, dashes, and numbers, but it can’t contain any spaces.“, but the charactor “_“ is allowed, which is mismatch the document.