[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/jp/ - Otaku Culture

Search:


View post   

>> No.45515276 [View]
File: 28 KB, 1304x984, spice intensity and crash.png [View same] [iqdb] [saucenao] [google]
45515276

>>45514275
I'm extremely hesitant to allow any kind of direct regex input from the user. There's far too many possible errors to account for, and since Era doesn't provide a proper regex validator or try-catch structure, there's no reliable method to prevent it from crashing.

Plus, it's not very intuitive that this particular input allows regex to begin with, Era's input mechanics has its own added quirks (such as removing brackets), few people would be able to use it, and in general, the usefulness strikes me as pretty limited.
I suppose you could OR a search and look for multiple tastes at once, but you wouldn't be able to do an AND search with it, which would be far more valuable, especially with the new request.

Marking the searched for terms would be possible, but not particularly useful without an OR mechanic, as the user already knows that all results match the searched for term, so I don't see too much added value in there either.

Intensity is already built-in, using different colors to indicated the strength of the effect, as can be seen here with the level of spiciness involved.

Navigation
View posts[+24][+48][+96]