diff --git a/resources/views/hardware/edit.blade.php b/resources/views/hardware/edit.blade.php index bdbc3c3c2e..64f55b90f9 100755 --- a/resources/views/hardware/edit.blade.php +++ b/resources/views/hardware/edit.blade.php @@ -301,7 +301,7 @@ e.preventDefault(); - var auto_tag = $("#asset_tag").val().replace(/[^\d]/g, ''); + var auto_tag = $("#asset_tag").val().replace(/^{{ preg_quote(App\Models\Setting::getSettings()->auto_increment_prefix) }}/g, ''); var box_html = ''; const zeroPad = (num, places) => String(num).padStart(places, '0');