The Shack-Hartmann wavefront sensor (SHWS) is widely used for high-speed, precise, and stable wavefront measurements. However, conventional SHWSs encounter a limitation in that the focused spot from each microlens is restricted to a single microlens, leading to a limited dynamic range. Herein, we propose an adaptive spot matching (ASM)-based SHWS to extend the dynamic range. This approach involves seeking an incident wavefront that best matches the detected spot distribution by employing a Hausdorff-distance-based nearest-distance matching strategy. The ASM-SHWS enables comprehensive spot matching across the entire imaging plane without requiring initial spot correspondences. Furthermore, due to its global matching capability, ASM-SHWS can maintain its capacity even if a portion of the spots are missing. Experiments showed that the ASM-SHWS could measure a high-curvature spherical wavefront with a local slope of 204.97 mrad, despite a 12.5% absence of spots. This value exceeds that of the conventional SHWS by a factor of 14.81.